package com.scpii.universal.hibernate.entity;

import com.scpii.universal.util.Const;
import com.scpii.universal.util.DateAndString;

/**
 * AppDetailPageTab entity. @author MyEclipse Persistence Tools
 */

public class AppDetailPageTab implements java.io.Serializable {

	// Fields

	private Integer intPageDetailId;
	private Integer intAppId;
	private String varPageDetailName;
	private Integer intPageDetailType;
	private String varPageUrl;
	private Integer intDeleteSign;
	private String datUpdateDatetime;
	private Integer intDetailPageCateId;

	// Constructors

	/** default constructor */
	public AppDetailPageTab() {
	}

	public Integer getIntPageDetailId() {
		return this.intPageDetailId;
	}

	public void setIntPageDetailId(Integer intPageDetailId) {
		this.intPageDetailId = intPageDetailId;
	}

	public Integer getIntAppId() {
		return this.intAppId;
	}

	public void setIntAppId(Integer intAppId) {
		this.intAppId = intAppId;
	}

	public String getVarPageDetailName() {
		return DateAndString.nullControl(this.varPageDetailName);
	}

	public void setVarPageDetailName(String varPageDetailName) {
		this.varPageDetailName = varPageDetailName;
	}

	public Integer getIntPageDetailType() {
		return this.intPageDetailType;
	}

	public void setIntPageDetailType(Integer intPageDetailType) {
		this.intPageDetailType = intPageDetailType;
	}

	public String getVarPageUrl() {
		if(this.varPageUrl!=null && this.varPageUrl.startsWith("/")){
			return Const.HOST_SRC_IMG_PATH+DateAndString.nullControl(this.varPageUrl.substring(1));
		}
		return Const.HOST_SRC_IMG_PATH+DateAndString.nullControl(this.varPageUrl);
	}

	public void setVarPageUrl(String varPageUrl) {
		this.varPageUrl = varPageUrl;
	}

	public Integer getIntDeleteSign() {
		return this.intDeleteSign;
	}

	public void setIntDeleteSign(Integer intDeleteSign) {
		this.intDeleteSign = intDeleteSign;
	}

	public String getDatUpdateDatetime() {
		return DateAndString.nullControl(this.datUpdateDatetime);
	}

	public void setDatUpdateDatetime(String datUpdateDatetime) {
		this.datUpdateDatetime = datUpdateDatetime;
	}

	public Integer getIntDetailPageCateId() {
		return intDetailPageCateId;
	}

	public void setIntDetailPageCateId(Integer intDetailPageCateId) {
		this.intDetailPageCateId = intDetailPageCateId;
	}

}